package com.company;

import java.util.Arrays;

public class ArrFill {
    public static void main(String[] args)
    {
        int[] number=new int[5];
        System.out.println("number —共有 "+number.length+" 个元素，它们分别是：");
        for(int i=0;i<number.length;i++)
        {
            Arrays.fill(number,i);
            System.out.println("number["+i+"]="+i);
        }
    }
}
